<?php

namespace App\Models;

use Encore\Admin\Traits\DefaultDatetimeFormat;
use Illuminate\Database\Eloquent\Model;

class StockApply extends Model
{
    use DefaultDatetimeFormat;
    protected $table = 'stock_apply';
    protected $fillable = ['sn','apply_date','depot_id', 'creator_id', 'examine_status', 'examine_at', 'examine_user'];

    public function products(){
        return $this->hasMany(StockApplyProduct::class, 'apply_id', 'id');
    }
}
